<template>
	<view class="popup" @touchmove.stop.prevent="moveHandle">
		<view class="info-wrap">
			<view class="popup-head">
				<text>微信授权</text>
			</view>
			<view class="popup-center">
				<image src="/static/img/logo.png" mode=""></image>
				<text>您的登录需使用微信授权登录是否立即授权？</text>
			</view>
			<view class="popup-bottom">
				<view class="popup-tip">
					<view class="popup-point"></view>
					<text>获得你的公开信息（昵称、头像等）</text>
				</view>
				<view class="popup-btns">
					<text style="color: #999999;" @tap='closeBtn'>取消</text>
					<!-- <text style="color: #999999;" @tap='btnFunction'>取消</text> -->
					<text @tap='btnFunction'>授权</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		//弹窗接收值
		props: {
			closeBtn:{
				default: function() {
					return function() {
						console.log('closeBtn click');
					}
				} 
			},
			btnFunction:{
				default: function() {
					return function() {
						console.log('btnFunction click');
					}
				}
			},
		},
		methods: {
			
			moveHandle() {
				return;
			}
		}
	}
</script>

<style>
	.popup {
		position: fixed;
		top:  0;
		left: 0;
		z-index: 1000;
		width: 100%;
		height: 100vh;
		background: rgba(0,0,0,0.3);
	}
	.info-wrap {
		width:650rpx;
		height:548rpx;
		border-radius:10px;
		background: rgba(255,255,255,1);
		margin-left: 50rpx;
		margin-top: calc((100vh - 548rpx) / 2);
		display: flex;
		flex-direction: column;
		align-items: center;
		
	}
	.popup-head{
		width: 610rpx;
		height: 100rpx;
		border-bottom: #F1F1F1 1rpx solid;
	}
	.popup-head text{
		width: 610rpx;
		height: 100rpx;
		display: block;
		text-align: center;
		line-height: 100rpx;
		font-size:34rpx;
		font-family:PingFang SC;
		font-weight:500;
		color:rgba(51,51,51,1);
	}
	.popup-center{
		width: 610rpx;
		height: 204rpx;
		border-bottom: #F1F1F1 1rpx solid;
		display: flex;
		align-items: center;
	}
	.popup-center image{
		width: 94rpx;
		height: 94rpx;
		margin-left: 40rpx;
	}
	.popup-center text{
		width: 390rpx;
		height: 94rpx;
		display: block;
		margin-left: 29rpx;
		font-size:30rpx;
		font-family:PingFang SC;
		font-weight:500;
		color:rgba(51,51,51,1);
	}
	.popup-bottom{
		width: 610rpx;
		height: 240rpx;
		
	}
	.popup-tip{
		width: 610rpx;
		height: 100rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.popup-point{
		width: 16rpx;
		height: 16rpx;
		border-radius: 50%;
		background-color: #999999;
		margin-right: 20rpx;
	}
	.popup-tip text{
		font-size:28rpx;
		font-family:PingFang SC;
		font-weight:500;
		color:rgba(153,153,153,1);
	}
	.popup-btns{
		width: 610rpx;
		height: 120rpx;
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	.popup-btns text{
		width: 140rpx;
		height: 120rpx;
		line-height: 120rpx;
		text-align: center;
		font-size:30rpx;
		font-family:PingFang SC;
		font-weight:500;
		color:rgba(253,177,71,1);
	}
</style>
